package test.rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Sub {
	
	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		String url = "rmi://localhost:1099/test.rmi.HelloServiceImpl";
        HelloService helloService = (HelloService) Naming.lookup(url);
        helloService.sayHello();
	}

}
